package com.boot.security.server.utils.mffl;

public enum MfflServiceEnum {

    MFZX (1,"mffl_consultation"),
    ZYZX (2,"mffl_consultation"),
    LVHJ (3,"mffl_lawyerletter"),
    HTSH (4,"mffl_contract"),
    HTDZ (5,"mffl_contract"),
    TWZX (6,"mffl_lwyer_personal_imageandtext"),
    ZX (7,"mffl_information");

    public int id;
    public String name;

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    MfflServiceEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }


    public static String getDescriptionByType(Integer type) {
        for (MfflServiceEnum moduleNameEnum : MfflServiceEnum.values()) {
            if (moduleNameEnum.getId() == type) {
                return moduleNameEnum.getName();
            }
        }
        return null;
    }

}
